//
//  CommonUtil.h
//  ios_news
//
//  Created by Han on 14-6-19.
//  Copyright (c) 2014年 ucoder. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Util : NSObject

+ (NSString *)getDateFromTimestamp:(NSString *)time;
+ (BOOL)isNightMode;

+ (void)dismissSuccess:(NSString *)mess inView:(UIView *)view;
+ (void)dismissError:(NSString *)mess inView:(UIView *)view;
+ (void)showMess:(NSString *)mess inView:(UIView *)view;
+ (void)dissmissProcessInView:(UIView *)view;

+(NSString *)formatHtmlString:(NSString *) htmlString;
+ (float)getTextHeightWithString:(NSString*)string
                            font:(UIFont *)font
                        andWidth:(float)width;

+ (void)saveObject:(NSObject *)obj withFileName:(NSString*)cacheKey;
+ (NSObject *)readObject:(NSString *)cacheKey;


@end
